#!/bin/bash

su
if [ $? -eq 0 ];then
rm -rf /data/data/tv.danmaku.bili/app_account/
if [ $? -eq 0 ];then
cd /sdcard/adbAccountTest/Datas/
if [ $? -eq 0 ];then
tar -xf /sdcard/adbAccountTest/Datas/app_account.tar.gz
if [ $? -eq 0 ];then
cp -r /sdcard/adbAccountTest/Datas/app_account/ /data/data/tv.danmaku.bili/app_account
if [ $? -eq 0 ];then
chmod 777 -R /data/data/tv.danmaku.bili/app_account
if [ $? -eq 0 ];then
rm -r /sdcard/adbAccountTest/Datas/app_account
     fi
    fi
   fi
  fi
 fi
fi
